package com.young.springdemo.service.commandchain;

public class President extends  Approve{

    public President(String name) {
        super(name);
    }

    protected void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() > 500) {
            System.out.println(this.name+"审批了价格为"+purchaseRequest.getPrice()+"的商品名"+purchaseRequest.getGoodsName());
        }
    }
}
